package com.example.springbootmybatis.mapper;

import com.example.springbootmybatis.entity.Authority;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author Administrator
 * @CLASSNAME: AuthrityMapper
 * @CreateTime 2023/12/22 12:19
 **/
@Mapper
public interface AuthorityMapper {


    @Select("select *  from authority")
    public List<Authority> getAuthorities();

    @Insert("insert into authority values(#{aid},#{authority})")
    public int addAuthority(Authority authority);

}
